<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="jq/jquery1.9/jquery-1.9.0.js"></script>
    <style>
        .container {
            display: flex;
        }
    </style>
    <script>
        $(function () {

            $(".right").mouseenter(function () {

                $(".left").attr("src", "images/left2.jpg");
                $(".right").attr("src", "images/right2.jpg");
                $(".end").attr("src", "images/end2.jpg");

            });
            $(".left").mouseenter(function () {

                $(".left").attr("src", "images/left1.jpg");
                $(".right").attr("src", "images/right1.jpg");
                $(".end").attr("src", "images/end1.jpg");

            });
        });
    </script>
</head>

<body>
    <div class="container">
        <img src="images/left1.jpg" alt="" class="left">
        <img src="images/right1.jpg" alt="" class="right">
    </div>
    <div>
        <img src="images/end1.jpg" alt="" class="end">
    </div>
</body>

</html>